const state = {
  dataSourceId: null,
  conifgBoxIsOpen: false,
  currentTab: "1",
  taskId: null,
};

const mutations = {
  setTaskId(state, payload) {
    state.taskId = payload;
  },
  setDataSourceId(state, payload) {
    state.dataSourceId = payload;
  },
  toggleConfigBoxDialog(state, payload) {
    state.conifgBoxIsOpen = payload;
  },
  toggleCurrentTab(state, payload) {
    state.currentTab = "" + payload;
  },
};

export default {
  state,
  mutations,
};
